  /**
   * Generate time : 2016-10-13 11:04:39
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.cg.domain;

import com.baosight.iplat4j.util.NumberUtils;
import java.math.BigDecimal;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCGSaleStatis 
 * table comment : 公司销售实绩统计 
 */
public class ZMCGSaleStatis extends DaoEPBase {

	private String fdKeyId = " ";		/* 主键*/
	private String fdCurrentDate = " ";		/* 当前日期*/
	private String fdVirtualDate = " ";		/* 调度日期*/
	private String fdReportDepartmentId = " ";		/* 汇报部门ID*/
	private String fdReportDepartment = " ";		/* 汇报部门*/
	private String fdReporterId = " ";		/* 汇报人ID*/
	private String fdReporter = " ";		/* 汇报人*/
	private String fdStatus = " ";		/* 状态*/
	private BigDecimal fdDayWagon = new BigDecimal("0");		/* 当日车皮*/
	private BigDecimal fdDayCarriage = new BigDecimal("0");		/* 当日用量*/
	private BigDecimal fdMonthCarriage = new BigDecimal("0");		/* 月累用量*/
	private BigDecimal fdMonthWagon = new BigDecimal("0");		/* 月累车皮*/
	private BigDecimal fdYearWagon = new BigDecimal("0");		/* 全年车皮*/
	private BigDecimal fdYearCarriage = new BigDecimal("0");		/* 年累用量*/
	private BigDecimal fdYearCarriageTb = new BigDecimal("0");		/* 年累用量同比*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("主键");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCurrentDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("当前日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdVirtualDate");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("调度日期");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartmentId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报部门ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReportDepartment");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName("汇报部门");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReporterId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("汇报人ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdReporter");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("汇报人");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(10);	
	eiColumn.setDescName("状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDayWagon");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("当日车皮");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdDayCarriage");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("当日用量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthCarriage");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("月累用量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMonthWagon");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("月累车皮");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYearWagon");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("全年车皮");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYearCarriage");
	eiColumn.setType("N");
	eiColumn.setScaleLength(1);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("年累用量");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdYearCarriageTb");
	eiColumn.setType("N");
	eiColumn.setScaleLength(2);
	eiColumn.setFieldLength(20);
	eiColumn.setDescName("年累用量同比");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCGSaleStatis() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - 主键
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - 主键
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdCurrentDate - 当前日期
	 * @return the fdCurrentDate
	 */
	public String getFdCurrentDate() {
		return this.fdCurrentDate;
	}
	
	/**
	 * set the fdCurrentDate - 当前日期
	 */
	public void setFdCurrentDate(String fdCurrentDate) {
		this.fdCurrentDate = fdCurrentDate;
	}
	
	/**
	 * get the fdVirtualDate - 调度日期
	 * @return the fdVirtualDate
	 */
	public String getFdVirtualDate() {
		return this.fdVirtualDate;
	}
	
	/**
	 * set the fdVirtualDate - 调度日期
	 */
	public void setFdVirtualDate(String fdVirtualDate) {
		this.fdVirtualDate = fdVirtualDate;
	}
	
	/**
	 * get the fdReportDepartmentId - 汇报部门ID
	 * @return the fdReportDepartmentId
	 */
	public String getFdReportDepartmentId() {
		return this.fdReportDepartmentId;
	}
	
	/**
	 * set the fdReportDepartmentId - 汇报部门ID
	 */
	public void setFdReportDepartmentId(String fdReportDepartmentId) {
		this.fdReportDepartmentId = fdReportDepartmentId;
	}
	
	/**
	 * get the fdReportDepartment - 汇报部门
	 * @return the fdReportDepartment
	 */
	public String getFdReportDepartment() {
		return this.fdReportDepartment;
	}
	
	/**
	 * set the fdReportDepartment - 汇报部门
	 */
	public void setFdReportDepartment(String fdReportDepartment) {
		this.fdReportDepartment = fdReportDepartment;
	}
	
	/**
	 * get the fdReporterId - 汇报人ID
	 * @return the fdReporterId
	 */
	public String getFdReporterId() {
		return this.fdReporterId;
	}
	
	/**
	 * set the fdReporterId - 汇报人ID
	 */
	public void setFdReporterId(String fdReporterId) {
		this.fdReporterId = fdReporterId;
	}
	
	/**
	 * get the fdReporter - 汇报人
	 * @return the fdReporter
	 */
	public String getFdReporter() {
		return this.fdReporter;
	}
	
	/**
	 * set the fdReporter - 汇报人
	 */
	public void setFdReporter(String fdReporter) {
		this.fdReporter = fdReporter;
	}
	
	/**
	 * get the fdStatus - 状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdDayWagon - 当日车皮
	 * @return the fdDayWagon
	 */
	public BigDecimal getFdDayWagon() {
		return this.fdDayWagon;
	}
	
	/**
	 * set the fdDayWagon - 当日车皮
	 */
	public void setFdDayWagon(BigDecimal fdDayWagon) {
		this.fdDayWagon = fdDayWagon;
	}
	
	/**
	 * get the fdDayCarriage - 当日用量
	 * @return the fdDayCarriage
	 */
	public BigDecimal getFdDayCarriage() {
		return this.fdDayCarriage;
	}
	
	/**
	 * set the fdDayCarriage - 当日用量
	 */
	public void setFdDayCarriage(BigDecimal fdDayCarriage) {
		this.fdDayCarriage = fdDayCarriage;
	}
	
	/**
	 * get the fdMonthCarriage - 月累用量
	 * @return the fdMonthCarriage
	 */
	public BigDecimal getFdMonthCarriage() {
		return this.fdMonthCarriage;
	}
	
	/**
	 * set the fdMonthCarriage - 月累用量
	 */
	public void setFdMonthCarriage(BigDecimal fdMonthCarriage) {
		this.fdMonthCarriage = fdMonthCarriage;
	}
	
	/**
	 * get the fdMonthWagon - 月累车皮
	 * @return the fdMonthWagon
	 */
	public BigDecimal getFdMonthWagon() {
		return this.fdMonthWagon;
	}
	
	/**
	 * set the fdMonthWagon - 月累车皮
	 */
	public void setFdMonthWagon(BigDecimal fdMonthWagon) {
		this.fdMonthWagon = fdMonthWagon;
	}
	
	/**
	 * get the fdYearWagon - 全年车皮
	 * @return the fdYearWagon
	 */
	public BigDecimal getFdYearWagon() {
		return this.fdYearWagon;
	}
	
	/**
	 * set the fdYearWagon - 全年车皮
	 */
	public void setFdYearWagon(BigDecimal fdYearWagon) {
		this.fdYearWagon = fdYearWagon;
	}
	
	/**
	 * get the fdYearCarriage - 年累用量
	 * @return the fdYearCarriage
	 */
	public BigDecimal getFdYearCarriage() {
		return this.fdYearCarriage;
	}
	
	/**
	 * set the fdYearCarriage - 年累用量
	 */
	public void setFdYearCarriage(BigDecimal fdYearCarriage) {
		this.fdYearCarriage = fdYearCarriage;
	}
	
	/**
	 * get the fdYearCarriageTb - 年累用量同比
	 * @return the fdYearCarriageTb
	 */
	public BigDecimal getFdYearCarriageTb() {
		return this.fdYearCarriageTb;
	}
	
	/**
	 * set the fdYearCarriageTb - 年累用量同比
	 */
	public void setFdYearCarriageTb(BigDecimal fdYearCarriageTb) {
		this.fdYearCarriageTb = fdYearCarriageTb;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdCurrentDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCurrentDate")), fdCurrentDate));
		setFdVirtualDate(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdVirtualDate")), fdVirtualDate));
		setFdReportDepartmentId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartmentId")), fdReportDepartmentId));
		setFdReportDepartment(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReportDepartment")), fdReportDepartment));
		setFdReporterId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporterId")), fdReporterId));
		setFdReporter(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdReporter")), fdReporter));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdDayWagon(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDayWagon")), fdDayWagon));
		setFdDayCarriage(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdDayCarriage")), fdDayCarriage));
		setFdMonthCarriage(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMonthCarriage")), fdMonthCarriage));
		setFdMonthWagon(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdMonthWagon")), fdMonthWagon));
		setFdYearWagon(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdYearWagon")), fdYearWagon));
		setFdYearCarriage(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdYearCarriage")), fdYearCarriage));
		setFdYearCarriageTb(NumberUtils.toBigDecimal(StringUtils.toString(map.get("fdYearCarriageTb")), fdYearCarriageTb));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdCurrentDate",StringUtils.toString(fdCurrentDate, eiMetadata.getMeta("fdCurrentDate")));	
			map.put("fdVirtualDate",StringUtils.toString(fdVirtualDate, eiMetadata.getMeta("fdVirtualDate")));	
			map.put("fdReportDepartmentId",StringUtils.toString(fdReportDepartmentId, eiMetadata.getMeta("fdReportDepartmentId")));	
			map.put("fdReportDepartment",StringUtils.toString(fdReportDepartment, eiMetadata.getMeta("fdReportDepartment")));	
			map.put("fdReporterId",StringUtils.toString(fdReporterId, eiMetadata.getMeta("fdReporterId")));	
			map.put("fdReporter",StringUtils.toString(fdReporter, eiMetadata.getMeta("fdReporter")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdDayWagon",StringUtils.toString(fdDayWagon, eiMetadata.getMeta("fdDayWagon")));	
			map.put("fdDayCarriage",StringUtils.toString(fdDayCarriage, eiMetadata.getMeta("fdDayCarriage")));	
			map.put("fdMonthCarriage",StringUtils.toString(fdMonthCarriage, eiMetadata.getMeta("fdMonthCarriage")));	
			map.put("fdMonthWagon",StringUtils.toString(fdMonthWagon, eiMetadata.getMeta("fdMonthWagon")));	
			map.put("fdYearWagon",StringUtils.toString(fdYearWagon, eiMetadata.getMeta("fdYearWagon")));	
			map.put("fdYearCarriage",StringUtils.toString(fdYearCarriage, eiMetadata.getMeta("fdYearCarriage")));	
			map.put("fdYearCarriageTb",StringUtils.toString(fdYearCarriageTb, eiMetadata.getMeta("fdYearCarriageTb")));	
			
		return map;
	
	}
}